<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>22_定位练习</title>
    <link rel="stylesheet" href="./css/basic.css" />
    <style>
      html,
      body {
        width: 100%;
        height: 100%;
      }
      .container {
        width: 40%;
        height: 80%;
        background-color: pink;
        position: relative;
        box-sizing: border-box;
        border-radius: 20%;
      }
      .item_01,
      .item_02,
      .item_03,
      .item_04,
      .item_05,
      .item_06,
      .item_07,
      .item_08,
      .item_09 {
        width: 100px;
        height: 100px;
        border-radius: 50px;
        background-color: blue;
        position: absolute;
      }
      .item_02 {
        right: 50%;
        background-color: antiquewhite;
        transform: translate(50%, 0);
      }
      .item_03 {
        right: 0;
        background-color: aqua;
      }
      .item_04 {
        top: 30%;
        background-color: blueviolet;
        transform: translate(0, 75%);
      }
      .item_05 {
        top: 30%;
        right: 50%;
        background-color: brown;
        transform: translate(50%, 75%);
      }
      .item_06 {
        top: 30%;
        right: 0;
        background-color: yellow;
        transform: translate(0, 75%);
      }
      .item_07 {
        bottom: 0;
        background-color: yellowgreen;
      }
      .item_08 {
        bottom: 0;
        right: 50%;
        background-color: violet;
        transform: translate(50%, 0);
      }
      .item_09 {
        bottom: 0;
        right: 0;
        background-color: turquoise;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="item_01"></div>
      <div class="item_02"></div>
      <div class="item_03"></div>
      <div class="item_04"></div>
      <div class="item_05"></div>
      <div class="item_06"></div>
      <div class="item_07"></div>
      <div class="item_08"></div>
      <div class="item_09"></div>
    </div>
  </body>
</html>
